package _22作业.IO流;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class T5 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\黑马java培训班\\代码\\itcast\\JavaSE\\day10\\abd\\test.txt");
        int readLength;
        byte[] bytes = new byte[1024];
        while ((readLength=fis.read(bytes))!=-1){
            fis.read(bytes, 0, readLength);
            System.out.println(new String(bytes));
        }


    }
}
